import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { InitialInventoryComponent } from './initial-inventory/initial-inventory.component';
import { AddInitialInventoryComponent } from './initial-inventory/add-initial-inventory/add-initial-inventory.component';
import { InventoryComponent } from './inventory/inventory.component';
import { InitialInventoryDetailedComponent } from './initial-inventory/initial-inventory-detailed/initial-inventory-detailed.component';
import { EditInitialInventoryComponent } from './initial-inventory/edit-initial-inventory/edit-initial-inventory.component';
import product from 'src/assets/i18n/zh-CN/product';
import { ProductInventoryRkComponent } from './product-inventory-rk/product-inventory-rk.component';
import { ReturningMaterialsToProductionComponent } from './returning-materials-to-production/returning-materials-to-production.component';
import { AddReturningMaterialsToProductionComponent } from './returning-materials-to-production/add-returning-materials-to-production/add-returning-materials-to-production.component';
import { EditReturningMaterialsToProductionComponent } from './returning-materials-to-production/edit-returning-materials-to-production/edit-returning-materials-to-production.component';
import { ReturningMaterialsDetailComponent } from './returning-materials-to-production/returning-materials-detail/returning-materials-detail.component';
import { InventoryJiluComponent } from './inventory-jilu/inventory-jilu.component';
import { InventoryWorkbenchComponent } from './inventory-workbench/inventory-workbench.component';
import { CanActivateGuard } from 'src/app/@core/services/can-load-service.guard';
import { OtherInventoryComponent } from './other-inventory/other-inventory.component';
import { OtherOutboundComponent } from './other-outbound/other-outbound.component';
import { InventoryWarningComponent } from './inventory-warning/inventory-warning.component';
const routes: Routes = [
  {
    path: 'initial-inventory',
    component: InitialInventoryComponent,
    canActivate: [CanActivateGuard],
  },
  {
    path: 'initial-inventory/add',
    component: AddInitialInventoryComponent,
    canActivate: [CanActivateGuard],
  },
  {
    path: 'initial-inventory/details/:id',
    component: InitialInventoryDetailedComponent,
    canActivate: [CanActivateGuard],
  },
  {
    path: 'initial-inventory/edit/:id',
    component: EditInitialInventoryComponent,
    canActivate: [CanActivateGuard],
  },
  {
    path: 'product-inventory-rk',
    component: ProductInventoryRkComponent,
    canActivate: [CanActivateGuard],
  },
  {
    path: 'inventory',
    component: InventoryComponent,
    canActivate: [CanActivateGuard],
  },
  {
    path: 'returning-materials-to-production',
    component: ReturningMaterialsToProductionComponent,
    canActivate: [CanActivateGuard],
  },
  {
    path: 'add-returning-materials-to-production',
    component: AddReturningMaterialsToProductionComponent,
    canActivate: [CanActivateGuard],
  },
  {
    path: 'edit-returning-materials-to-production/:id',
    component: EditReturningMaterialsToProductionComponent,
    canActivate: [CanActivateGuard],
  },
  {
    path: 'returning-materials-detail/:id',
    component: ReturningMaterialsDetailComponent,
    canActivate: [CanActivateGuard],
  },
  {
    path: 'inventory-jilu',
    component: InventoryJiluComponent,
    canActivate: [CanActivateGuard],
  },
  {
    path: 'inventory-workbench',
    component: InventoryWorkbenchComponent,
    canActivate: [CanActivateGuard],
  },
  {
    path: 'other-indevntory',
    component: OtherInventoryComponent,
    canActivate: [CanActivateGuard],
  },
  {
    path: 'other-outbound',
    component: OtherOutboundComponent,
    canActivate: [CanActivateGuard],
  },
  {
    path: 'inventory-warning',
    component: InventoryWarningComponent,
    canActivate: [CanActivateGuard],
  }
];
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class InventoryRoutingModule {}
